<template>
   <div class="message">
            <div class="msgtitle">
                发表您的留言：
            </div>
            <div class="mingzi">姓名：</div> <input type="text" v-model="meg.mingzi">
            <div class="email">邮箱:</div> <input type="text" v-model="meg.eamil">
            <div class="phone">电话：</div><input type="text" v-model="meg.phone">
            <div class="mesadd">
                <div class="neirong">内容：</div> 
                <div class="textadd">
                    <textarea name="" id="" placeholder="留言需审核后才会显示"></textarea>
                </div>
            </div>
            <button class="sub" v-on:click.prevent="post">
                提交留言
            </button>
            
        </div>
</template>

<script>
export default {
    name:"MesSage",
    data() {
        return {
            meg:{
                mingzi:"",
                eamil:"",
                phone:"",
                
                
            }
        }
    },
   
}
</script>

<style scoped>
.message{
    margin: 0 auto 30px;

    /* border: 1px solid black; */
    width: 1000px;
}
.message .msgtitle{
    width: 100%;
    height: 50px;
    font-size: 12px;
}
.message .mingzi{
    float: left;
    padding-left: 5px;
    font-size: 12px;
    /* border: 1px solid black; */
    width: 42px;
    text-overflow: ellipsis;

}
.message input{
    float: left;
}
.message .email{
    float: left;
    margin-left: 100px;
    padding-left: 5px;
    font-size: 12px;
    /* border: 1px solid black; */
    width: 40px;
    text-overflow: ellipsis;
}
.message .phone{
    float: left;
    padding-left: 5px;
    margin-left: 100px;

    font-size: 12px;
    /* border: 1px solid black; */
    width: 42px;
    text-overflow: ellipsis;
}
.message .mesadd{
    margin-top: 50px;
    width: 1000px;
    height: 100px;
}
.message .mesadd .neirong{
    float: left;
    padding-left: 5px;
    width: 42px;
   line-height: 100px;
    font-size: 12px;
}
.message .mesadd .textadd textarea{
    float: left;
    width: 930px;
    height: 100px;
    font-size: 10px;
    padding: 5px;
}
.message .sub{
    margin-left: 45px;
    margin-top: 30px;
    border:none;
    width: 100px;
    height: 40px;
    background-color: orange;
    font-size: 14px;
    color: #fff;
    line-height: 40px;
    text-align: center;
    cursor: pointer;

}

</style>